﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Login.Master" AutoEventWireup="true"
    Inherits="System.Web.Mvc.ViewPage" Title="Login" %>
<%@ Import Namespace="WebUI.Controllers"%>
<%@ Import Namespace="Microsoft.Web.Mvc" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <div id="left">
        <% if (ViewData.ContainsKey("LoginFaild"))
           { %>
        <div style="color: Red">
            <%=ViewData["LoginFaild"] %></div>
        <% } %>
        <% using (Html.BeginForm<LoginController>(x=>x.Login(), FormMethod.Post, new{@class = "niceform"}))
   { %>
    <%= Html.AntiForgeryToken()%>
        <div class="login_area">
            <div class="login_head">
                Already a Member ?</div>
            <div class="login_textarea">
                <div class="login_name">
                    Your Name
                </div>
                <div class="login_box">
                    <label>
                        <input type="text" class="logintextbox" name="userName" />
                    </label>
                </div>
            </div>
            <div class="login_textarea">
                <div class="login_name">
                    Password
                </div>
                <div class="login_box">
                    <label>
                        <input type="password" class="logintextbox" name="password" />
                    </label>
                </div>
            </div>
            <div class="login_textarea">
                <input type=submit value="LogIn" />
            </div>
        </div>
        <% } %>
        <br />            
        <br />            
        <br />            
        <br />            
    </div>
</asp:Content>
